import request from "@/utils/request";

//添加或者编辑课程作业
export function AddOrUpdateCourseAssign(data) {
  return request({
    url: "api/Assign/AddOrUpdateCourseAssign",
    method: "post",
    data,
  });
}

//删除课程作业
export function DelCourseAssign(data) {
  return request({
    url: "api/Assign/DelCourseAssign",
    method: "post",
    data,
  });
}
//提交作业答复
export function AddAnswerAssign(data) {
  return request({
    url: "api/Assign/AddAnswerAssign",
    method: "post",
    data,
  });
}
//评价作业答复
export function GradeAnswerAssign(data) {
  return request({
    url: "api/Assign/GradeAnswerAssign",
    method: "post",
    data,
  });
}
//获取课程作业列表
export function GetCourseAssignList_Page(data) {
  return request({
    url: "api/Assign/GetCourseAssignList_Page",
    method: "post",
    data,
  });
}
//获取课程作业详情
export function GetCourseAssignDetail(data) {
  return request({
    url: "api/Assign/GetCourseAssignDetail",
    method: "post",
    data,
  });
}
//获取作业答复列表
export function GetAnswerAssignList_Page(data) {
  return request({
    url: "api/Assign/GetAnswerAssignList_Page",
    method: "post",
    data,
  });
}
//发布作业详情
export function GetAssignDetail(data) {
  return request({
    url: "api/Assign/GetAssignDetail",
    method: "post",
    data,
  });
}

//获取作业答复详情
export function GetAssignSubmitDetail(data) {
  return request({
    url: "api/Assign/GetAssignSubmitDetail",
    method: "post",
    data,
  });
}
